<template>
  <div>
    {{point.x}}
    {{point.y}}
    <hr>
  </div>
</template>

<script>
  // 引入一个方法
  import usePoint from './hooks/usePoint'
  
  export default {
    setup(){
      const point = usePoint()
      return {
        point,
      }
    },
  }
</script>
